package com.bwda.dsrs.filecenter.domain.form.applicationkeyhistory;

import javax.validation.constraints.NotNull;
import com.bwda.dsrs.base.util.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @author Administrator
 */
@Data
@ApiModel(description = "应用系统历史秘钥")
public class ApplicationKeyhistoryUpdateForm {

	@ApiModelProperty(value = "应用系统历史秘钥id", required = true)
	@NotNull(message = "应用系统历史秘钥id不能为空")
	private Integer appKeyHistoryId;

	@ApiModelProperty(value = "应用系统id")
	private Integer appId;

	@ApiModelProperty(value = "更新方式0自动更新1手动更新")
	private Integer updateType;

	@ApiModelProperty(value = "应用系统编码")
	private String appCode;

	@ApiModelProperty(value = "生效时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date effectiveTime;

	@ApiModelProperty(value = "失效时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date failureTime;

	@ApiModelProperty(value = "应用系统原始秘钥")
	private String applicationSecretKey;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

	@ApiModelProperty(value = "拼接后秘钥")
	private String applicationSecretKeyInfo;

}